<template>
  <div class="recommended">
    <div class="hot_box">
      <div class="hot"><i></i>热搜</div>
      <div class="check"><i></i>换一换</div>
    </div>
    <div class="hot_content">
      <ul>
        <li>
          HPV疫苗预约入口
          <i>爆</i>
        </li>
        <li>
          二十四节气.养生
          <i class="re">热</i>
        </li>
        <li>
          新冠疫苗接种指南
          <i class="xin">新</i>
        </li>
        <li>
          100%儿子的秘方
          <i class="xin">新</i>
        </li>
        <li>
          宫颈癌入侵的身体征兆
          <i>爆</i>
        </li>
        <li>
          60秒轻松入睡
          <i>爆</i>
        </li>
      </ul>
    </div>
    <!-- 全部 -->
    <div class="all">
      <ul>
        <li>
          <img src="https://z3.ax1x.com/2021/07/19/WJTpnI.png" />
          <p class="active">全部</p>
        </li>
        <li>
          <img src="https://z3.ax1x.com/2021/07/19/WJ7mGD.png" />
          <p>孕产育儿</p>
        </li>
        <li>
          <img src="https://z3.ax1x.com/2021/07/19/WJ78dP.png" />
          <p>中医养生</p>
        </li>
        <li>
          <img src="https://z3.ax1x.com/2021/07/19/WJ73Zt.png" />
          <p>疾病常识</p>
        </li>
      </ul>
    </div>
    <!-- 医生宣传 -->
    <div class="doctor_find">
      <div class="doctor_box">
        <div class="doctor_btitle">
          <p>家中有癌症患者，回传染吗？</p>
          <div class="img_top">
            <img src="https://z3.ax1x.com/2021/07/19/WJqMM4.png" />
          </div>
        </div>
        <div class="content_oder">
          <div class="doctor_instr">
            <div class="doctor_img">
              <img src="https://z3.ax1x.com/2021/07/17/Wlx11g.png" />
            </div>
            <h2 class="doctor_name">
              韩风梅
              <span class="time">15小时前</span>
            </h2>
          </div>
          <div class="doctor_oder"><i>2164</i>阅读</div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import { ref } from "vue";
export default {
  setup() {
    const active = ref(0);

    return {
      active,
    };
  },
};
</script>
<style lang="less" scoped>
.recommended {
  background: #fff;
  .hot_box {
    display: flex;
    padding: 15px 10px 5px;
    font-size: 14px;
    color: #333;
    justify-content: space-between;
  }
  .hot {
    height: 32px;
    line-height: 32px;
    i {
      display: inline-block;
      width: 22px;
      height: 22px;
      background: url(https://z3.ax1x.com/2021/07/19/WGO8YV.png);
      background-size: 100% 100%;
      vertical-align: middle;
    }
  }
  .check {
    width: 90px;
    height: 32px;
    line-height: 32px;
    color: #a0a1a7;
    border: 1px solid #a0a1a7;
    border-radius: 32px;
    i {
      display: inline-block;
      width: 22px;
      height: 22px;
      background: url(https://z3.ax1x.com/2021/07/19/WGXqC6.png);
      background-size: 100% 100%;
      vertical-align: middle;
      margin-left: 6px;
    }
  }
  .hot_content {
    padding: 0px 15px 15px;
    ul {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      li {
        width: 49%;
        height: 36px;
        font-size: 14px;
        line-height: 36px;
        margin-top: 10px;
        background: #ffffff;
        box-shadow: 0px 7px 5px 0px rgba(148, 148, 148, 0.1);
        border-radius: 10px;
        display: flex;
        justify-content: space-around;
        align-items: center;
      }
      i {
        width: 18px;
        height: 18px;
        line-height: 18px;
        text-align: center;
        background: linear-gradient(140deg, #ff7664, #f7421d);
        border-radius: 5px;
        font-size: 12px;
        vertical-align: middle;
        color: #fff;
      }
      .re {
        background: linear-gradient(
          -18deg,
          rgba(254, 192, 113, 0.99),
          rgba(255, 125, 13, 0.99)
        );
      }
      .xin {
        background: linear-gradient(
          -18deg,
          rgba(117, 162, 255, 0.99),
          rgba(14, 95, 255, 0.99)
        );
      }
    }
  }
  // all
  .all {
    padding: 10px 15px 35px;
    ul {
      display: flex;
      justify-content: space-around;
    }
    li {
      width: 55px;
      height: 55px;
      // margin-right: 27px;
      img {
        width: 100%;
      }
      p {
        width: 50px;
        height: 21px;
        line-height: 21px;
        text-align: center;
        border-radius: 21px;
        font-size: 12px;
      }
      .active {
        background: #1492ff;
        color: #fff;
      }
    }
  }
  // 医生宣传
  .doctor_find {
    padding: 16px 15px;
    .doctor_box {
      margin-bottom: 15px;
    }
    .doctor_btitle {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 20px;
      font-weight: 900;
      color: #333333;
    }
    .img_top {
      width: 105px;
      height: 105px;
      img {
        width: 100%;
      }
    }
    .content_oder {
      display: flex;
      padding: 15px 0;
      justify-content: space-between;
    }
    .doctor_instr {
      display: flex;
    }
    .doctor_img {
      width: 27px;
      height: 27px;
      border-radius: 50%;
      img {
        width: 100%;
      }
    }
    .doctor_name {
      line-height: 27px;
      font-size: 12px;
      color: #999999;
      span {
        margin-left: 10px;
      }
    }
    .doctor_oder {
      font-size: 12px;
      color: #999999;
      margin: 8px 6px 0 0;
    }
  }
}
</style>
